package com.matrix.playelasticsearch.enity.es;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;

import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
@Document(indexName = "ecommerce")
public class ECommerce {

    @Id
    private String id;

    private String[] category;

    private String currency;

    @Field("customer_first_name")
    private String customerFirstName;

    @Field("customer_full_name")
    private String customerFullName;

    @Field("customer_phone")
    private String customerPhone;

    @Field("order_date")
    private String orderDate;

}
